import os
import sys
curpath = os.path.abspath(sys.argv[0])
curpath = curpath.replace('\\', '/');
filename = curpath.split('/')
print filename
i = len(filename)
envname = filename[i-3]
filename = filename[i-1]
print curpath
print envname
print filename
